import http from "@/utils/request";

//评分分布
export const getRateVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getRateVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//价格分布
export const getPriceVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getPriceVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//课程分类饼图
export const getCategoryVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getCategoryVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//课程topn
export const getCourseTopNVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getCourseTopNVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
//性别分布饼图
export const getGenderVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getGenderVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//年龄分布
export const getAgeFunnelVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getAgeVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

//场地实时
export const getVenueVisuals = () => {
  return http.request({
    url: '/api/v1/data-visual/getAgeVisuals',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }
  })
}
